<template>
    <div class="home-panel">
        <div class="container">
            <!-- 主标题  副标题-->
            <div class="head">
                <h3 class="title">{{ title }}<small>{{ subtitle }}</small></h3>
                <!-- <RouterLink to="/"><span>查看全部</span></RouterLink> -->
            </div>
            <!--商品列表-->
            <slot name="main"></slot>
        </div>
    </div>
</template>

<script>
export default {
    props: {
        title: {
            type: String,
            default: ''
        },
        subtitle: {
            type: String,
            default: ''
        }
    }
}
</script>

<style lang="scss" scoped>
.home-panel {
    background: #ffff;
    position: relative;
    .head {
        padding: 40px 0;
        display: flex;
        align-items: flex-end;

        h3 {
            flex: 1;
            font-size: 32px;
            font-weight: 400;
            margin-left: 6px;
            height: 35px;
            line-height: 35px;
            

            small {
                font-size: 16px;
                color: #999;
                margin-left: 20px;
            }
        }
    }

}
</style>